﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using BUS;
using DevExpress.XtraEditors.Controls;

namespace QuanLyHocSinh.GUI
{
    public partial class F_BaoCaoTongKetMon : DevExpress.XtraEditors.XtraUserControl
    {
        public F_BaoCaoTongKetMon()
        {
            InitializeComponent();
            this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;


        }

        private void F_BaoCaoTongKetMon_Load(object sender, EventArgs e)
        {
            InitLookUp();
        }

        private void InitLookUp()
        {
            cb_hocky.Properties.DataSource = BUSHocKy.DanhSachHocKy();
            cb_hocky.Properties.DisplayMember = "TENHK";
            cb_hocky.Properties.ValueMember = "MAHK";
            cb_hocky.Properties.ShowHeader = false;
            cb_hocky.Properties.ShowFooter = false;
            cb_hocky.Properties.ImmediatePopup = false;
            cb_hocky.Properties.SearchMode = SearchMode.AutoComplete;


            cb_monhoc.Properties.DataSource = BUSHocKy.DanhSachMonHoc();
            cb_monhoc.Properties.DisplayMember = "TENMONHOC";
            cb_monhoc.Properties.ValueMember = "MAMONHOC";
            cb_monhoc.Properties.ShowHeader = false;
            cb_monhoc.Properties.ShowFooter = false;
            cb_monhoc.Properties.ImmediatePopup = false;
            cb_monhoc.Properties.SearchMode = SearchMode.AutoComplete;
        }

        private void InitDataGridView()
        {

        }

        private void cb_hocky_EditValueChanged(object sender, EventArgs e)
        {
            lbhocki.Text = cb_hocky.Text;
        }
        private void cb_monhoc_EditValueChanged(object sender, EventArgs e)
        {
            lb_monhoc.Text = cb_monhoc.Text;
        }
    }
}